﻿using AspDotNet.Core3.Mvc.Study.ProductDemo.Models;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace AspDotNet.Core3.Mvc.Study.ProductDemo.Controllers
{
    public class ProductController : Controller
    {
        public IActionResult Index()
        {
            return View();
        }

        public ActionResult TestRazorByJson()
        {
            return Json(new Product { Name = "Apple Watch 3", Date = DateTime.Now.ToString(), ID = 1, Price = 2000 });
        }
    }
}
